package com.aisile.common.exception;

import com.aisile.model.common.dtos.ResponseResult;

/**
 * @Auther:yry
 * @Date:2023/12/22 0022
 * @VERSON:1.0
 */
public class CustomException extends RuntimeException {

    private ResponseResult responseResult;

    public CustomException(Integer code,String errorMsg){
        responseResult = new ResponseResult(code,errorMsg);
    }

    public ResponseResult getResponseResult(){
        return responseResult;
    }

}
